package work;

// 哺乳动物类
public class Mammal implements Animal {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected String name;

    public Mammal(){
        this.name="mammal";
    }
    public Mammal(String name) {
        this.name = name;
    }

    @Override
    public void makeSound() {
    }

    @Override
    public void displayDetails() {

    }
    public void move(){
        System.out.println("哺乳动物是手脚并用走和跑的");
    }
}

